#ifndef _ZENGL_TEXTURE_H_
#define _ZENGL_TEXTURE_H_

#include "zglConfig.h"
#include "zglEngine.h"

namespace sgui
{
namespace engine
{

class zglEngine;

class zglTexture: public sTexture
{
private:
	zglPTexture				m_tex;
    zglEngine&				m_engine;
public:
	void draw(const math::sRectf& rect) const;
	void drawClip(const math::sRectf& rect, const math::sRectf& clipRect) const;
	
	void update(const preset::sPreset& preset);

	zglTexture(zglEngine& engine, const res::sTextureResource& res, const preset::sTexturePreset& preset);
};

};
};

#endif